package com.anlu.pattern.structrue.composite;

import java.util.List;


/**
 * Created with IntelliJ IDEA.
 *
 * @Author: anlu
 * @Date: 2021/05/19/16:57
 * @Description:
 */
public abstract class Node {
    private String name;
    public Node(String name){
        this.name=name;
    }

    public abstract List<Node> getChildren();

    public String getName() {
        return name;
    }
}
